import request from '@/utils/request.js'

/**
 * 发布反馈
 * @param uid
 *  @param content 内容JSON
 * @return {*}
 */
export const putFeedbackApi = (uid, content) => {
  return request({
    url: '/feedback/',
    method: 'post',
    data: {
      uid,
      content
    }
  })
}

export const getFeedbackListApi = () => {
  return request({
    url: '/feedback',
    method: 'get'
  })
}

/**
 * 删除
 * @param uid
 * @param fid
 * @return {*}
 */
export const delFeedbackApi = (uid,fid) => {
  return request({
    url: `/feedback/delete/${uid}/${fid}`,
    method: 'put'
  })
}